package edu.hhu.chart.domain;

import java.math.BigDecimal;
import java.util.List;

public class Series {

	private String name;

	private String type;

	private List<BigDecimal> data;// 这里要用int 不能用String 不然前台显示不正常（特别是在做数学运算的时候）

	private itemStyle itemStyle;

	private String stack;

	private boolean smooth;

	private int yAxisIndex;

	public Series() {
		super();
	}

	public Series(String name, String type, List<BigDecimal> data) {
		super();
		this.name = name;
		this.type = type;
		this.data = data;
		stack = "总量";
		smooth = true;
	}

	public Series(String name, String type, List<BigDecimal> data, itemStyle itemStyle) {
		super();
		this.name = name;
		this.type = type;
		this.data = data;
		this.itemStyle = itemStyle;
		stack = "总量";
		smooth = true;
	}

	public Series(String name, String type, List<BigDecimal> data, int yAxisIndex) {
		super();
		this.name = name;
		this.type = type;
		this.data = data;
		smooth = true;
		this.yAxisIndex = yAxisIndex;

	}

	public String getName() {
		return name;
	}

	public String getType() {
		return type;
	}

	public List<BigDecimal> getData() {
		return data;
	}

	public itemStyle getItemStyle() {
		return itemStyle;
	}

	public String getStack() {
		return stack;
	}

	public boolean isSmooth() {
		return smooth;
	}

	public int getyAxisIndex() {
		return yAxisIndex;
	}
	
	

}
